<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定时器的返回值</title>
</head>
<body>
    <SCript>
        //书写第一个定时器
        var timer1=setTimeout(function(){console.log('延时定时器')},1000)
        //书写第二个定时器
        var timer2=setInterval(function(){console.log('间隔定时器')},1000)

        //输出返回值
        console.log('timer1:',timer1)
        console.log('timer2:',timer2) 
        //不分种类，只是显示第几个定时器
    </SCript>
</body>
</html>